﻿using Com.Pernix.Component.Test.Models;
using FluentNHibernate.Mapping;

namespace Com.Pernix.Component.Test.Mapping
{
    public sealed class ProductMap: ClassMap<Product>
    {
        public ProductMap()
        {
            Id(x => x.Id);
            Map(x => x.Name);
            Map(x => x.Description);
            Map(x => x.UnitPrice);
            Map(x => x.ReorderLevel);
            Map(x => x.Discontinued);
            References(x => x.Category);
        }
    }
}
